Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make cache-write failures non-fatal #12302

Merged
merged 1 commit into from
Jul 12, 2024
Merged

Make cache-write failures non-fatal #12302

merged 1 commit into from
Jul 12, 2024

Conversation

charliermarsh
Copy link
Member

Summary

Closes #12284.

@charliermarsh charliermarsh added bug Something isn't working windows Specific to the Windows platform labels Jul 12, 2024
@charliermarsh charliermarsh marked this pull request as draft July 12, 2024 13:03
@charliermarsh
Copy link
Member Author

One sec, making some changes.

@charliermarsh charliermarsh marked this pull request as ready for review July 12, 2024 13:07
self.path.display()
)
})?;
if let Err(err) = temp_file.persist(&self.path) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The open method on this struct already uses a similar pattern of warning (but ignoring) some errors.

Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@zanieb
Copy link
Member

zanieb commented Jul 12, 2024

Should we be retrying like we do in uv?

@charliermarsh
Copy link
Member Author

I don't think we should in this case because it's not a guard against anti-virus stuff like with binaries; it's a guard against the file being in-use, and it's not clear how long we'd expect that to be true or whether we should expect it to resolve.

@charliermarsh charliermarsh merged commit e58713e into main Jul 12, 2024
20 checks passed
@charliermarsh charliermarsh deleted the charlie/caches branch July 12, 2024 14:33
@jaraco
Copy link
Contributor

jaraco commented Jul 13, 2024

Thanks for the fast fix (and the fast release cadence so I don't have to inquire about when we might get the fix)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Specific to the Windows platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Access Denied error due to race saving cache file on Windows
3 participants